import React from 'react';
import { Pagination } from 'antd';

// 通用分页组件
class MyPagination extends React.Component {
    constructor(props) {
        super(props);
    }
    render() {
        return (
            <div className="row">
                <div className="col-md-12">
                    <Pagination {...this.props}
                        //hideOnSinglePage
                        pageSize={10}
                        showTitle={false}
                        pageSizeOptions={[10]}
                    />
                </div>
            </div>
        );
    }
}

export default MyPagination;